﻿namespace Dynamic.Api.Common
{
    /// <summary>
    /// 过滤动态Api配置
    /// </summary>
    public class AssemblyDynamicWebApiOptions
    {
        /// <summary>
        /// 路由前缀
        /// <para></para>
        /// </summary>
        public string ApiPrefix { get; }

        /// <summary>
        ///Http动词
        /// <para></para>
        /// Default value is null.
        /// </summary>
        public string HttpVerb { get; }

        /// <summary>
        /// 初始化配置
        /// </summary>
        public AssemblyDynamicWebApiOptions(string? apiPrefix = null, string? httpVerb = null)
        {
            ApiPrefix = apiPrefix;
            HttpVerb = httpVerb;
        }
    }
}